package com.zy.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sun.org.apache.xpath.internal.objects.XString;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Email implements Serializable {
    /**
     * id
     * 用户id
     * 内容
     * 时间
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private String content;
    private Date time;
    private String date;
    private Integer flag;
    private String remarks;

    public Email(Integer userId, String content, String date, String remarks) {
        this.userId = userId;
        this.content = content;
        this.date = date;
        this.remarks = remarks;
    }
}